package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.pojos.ApArticle;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * TODO
 *
 * @Author mr.lin
 * @Date 2025/1/24 13:50
 */

public interface ArticleMapper extends BaseMapper<ApArticle> {

    /**
     * 根据参数加载文章列表
     * @param dto
     * @param type
     * @return
     */
     List<ApArticle> loadArticleList(@Param("dto") ArticleHomeDto dto, @Param("type") Short type);
}
